package com.usian.service.impl;

import com.usian.mapper.UserMapper;
import com.usian.pojo.Student;
import com.usian.pojo.User;
import com.usian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(Integer id) {
        return new User(id,"王粪堆",18);
    }

    @Override
    public List<Student> findAllStu() {
        return userMapper.findAllStu();
    }
}
